import 'package:app/shared/constants/common.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get_state_manager/get_state_manager.dart';

class ClassiesCom extends GetView {
  const ClassiesCom({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    List<String> _imageList = [
      "assets/icons/heart.svg",
      "assets/icons/huodon.svg",
      "assets/icons/huati.svg",
      "assets/icons/video.svg",
      "assets/icons/trval.svg",
    ];
    List<String> _desList = [
      "动态",
      "活动",
      "话题",
      "视频",
      "游记",
    ];
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: List.generate(
          _imageList.length,
          (int index) => Container(
                padding:
                    EdgeInsets.symmetric(vertical: sDefaultMarginPadding * 2),
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    SvgPicture.asset(
                      _imageList[index],
                      height: 40,
                    ),
                    SizedBox(
                      height: 10,
                    ),
                    Text(
                      _desList[index],
                      style:
                          TextStyle(fontWeight: FontWeight.bold, fontSize: 17),
                    )
                  ],
                ),
              )),
    );
  }
}
